package cn.niit.pojo;

public class User {
    private String name;
    private Address address;
    private String sex;

    public User(String name, Address address, String sex) {
        this.name = name;
        this.address = address;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getSex() {
        return sex;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", address=" + address +
                ", sex='" + sex + '\'' +
                '}';
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
